package com.xmy.cultivate.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 管理
 * </p>
 *
 * @author hpiggy
 * @since 2023-04-14
 */
@Data
@ApiModel(value = "Transcript对象", description = "成绩管理")
public class Transcript implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    @ApiModelProperty("校区id")
    private Long schoolId;

    @ExcelIgnore
    @ApiModelProperty("校区名称")
    private String schoolName;

    @ExcelIgnore
    @ApiModelProperty("任课老师")
    private Long teacherId;

    @ExcelIgnore
    @ApiModelProperty("任课老师姓名")
    private String teacherName;

    @ExcelIgnore
    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("学生姓名")
    @ExcelProperty(index = 0,value = "学生姓名")
    private String studentName;

    @ExcelIgnore
    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("科目名称")
    @ExcelProperty(index = 1,value = "科目名称")
    private String subjectsName;

    @ApiModelProperty("年份")
    @ExcelProperty(index = 2,value = "年份")
    private Integer yearPart;

    @ExcelIgnore
    @ApiModelProperty("学期：1寒假班，2春季班，3暑假班，4秋季班")
    private Integer quarterNum;

    @ApiModelProperty("学期名称")
    @ExcelProperty(index = 3,value = "学期")
    private String quarterName;

    @ExcelIgnore
    @ApiModelProperty("考试名称id:1期中，2期中摸底，3期末，4期末摸底")
    private Integer examNum;

    @ApiModelProperty("考试名称")
    @ExcelProperty(index = 4,value = "考试名称")
    private String examName;

    @ExcelIgnore
    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("年级名称")
    @ExcelProperty(index = 5,value = "年级")
    private String yearClassName;

    @ExcelIgnore
    private Integer gradeSection;

    @ExcelIgnore
    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("班级名称")
    @ExcelProperty(index = 6,value = "班级")
    private String gradeName;

    @ApiModelProperty("分数")
    @ExcelProperty(index = 7,value = "分数")
    private String score;

    @ExcelIgnore
    private BigDecimal scoreStart;

    @ExcelIgnore
    private BigDecimal scoreEnd;

    /**
     * 分数类型：1分数，2分段
     */
    @ExcelIgnore
    private Integer scoreType;

    @ExcelIgnore
    @ApiModelProperty("录入分数后改为1")
    private Integer isStatistics;

    @ExcelIgnore
    @ApiModelProperty("是否微信推送，0否，1是")
    private Integer isWxPush;

    @ExcelIgnore
    @TableField(exist = false)
    private String headImg;

    @ExcelIgnore
    @TableLogic
    private Integer deleted;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @ExcelIgnore
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @ExcelIgnore
    private LocalDateTime deletedAt;

    @ExcelIgnore
    @ApiModelProperty("备注")
    private String remark;

    @ExcelIgnore
    @ApiModelProperty("报读校区")
    private Long readingSchoolId;
}
